package gui;

import processing.core.PApplet;
import processing.core.PImage;
import controlP5.ControlCanvas;

public class CifradoCanvas extends ControlCanvas {
	PImage C,M,Y,K;
	
	public CifradoCanvas(PImage C, PImage M, PImage Y, PImage K) {
		super();
		this.C = C;
		this.M = M;
		this.Y = Y;
		this.K = K;
	}
	
	@Override
	public void draw(PApplet app) {
		int w = K.width, h = K.height;

		app.tint(255,255,255);
		app.image(K, 20,100);
		app.tint(0, 255,255);
		app.image(C, 20+w+20, 100);
		app.tint(255,0,255);
		app.image(M, 20, 100+h+20);
		app.tint(255,255,0);
		app.image(Y, 20+w+20, 100+h+20);
		app.tint(255,255,255);
		
	}

}
